[Unit]
Description=Logstash
After=network.target

[Service]
User={{ elk_user }}
Group={{ elk_user }}
ExecStart={{ elk_path.apps }}/logstash/bin/logstash
WorkingDirectory={{ elk_path.apps }}/logstash
EnvironmentFile=-{{ logstash_env_file }}

Restart=unless-stopped
RestartSec=5
StartLimitIntervalSec=60
StartLimitBurst=3

[Install]
WantedBy=multi-user.target
